import request from '@/utils/request'

/**
 * 设备监控
 */
export function getMachineNum(id) {
  return request({
    url: 'dust/Index/getMachineNum?id='+id,
    method: 'get'
  })
}

/**
 * 实时数据
 * @param data
 */
export function getIndexTimeData() {
  return request({
    url: 'dust/Index/getIndexTimeData',
    method: 'get'
  })
}
/**
 * 修改
 * @param data
 */
export function updateAlarmDust(data) {
  return request({
    url: 'dust/AlarmDust',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取详情
 * @param {Id}
 */
export function getAlarmDust(id) {
  return request({
    url: 'dust/AlarmDust/' + id,
    method: 'get'
  })
}

/**
 * 删除
 * @param {主键} pid
 */
export function delAlarmDust(pid) {
  return request({
    url: 'dust/AlarmDust/delete/' + pid,
    method: 'delete'
  })
}

